package com.example.elm_server_api.mapper;

import com.example.elm_server_api.domain.Order;
import com.example.elm_server_api.domain.OrderDetail;

import java.util.List;

/**
* @author 啦啦啦
* @description 针对表【order(订单主表)】的数据库操作Mapper
* @createDate 2022-07-18 15:34:04
* @Entity com.example.elm_server_api.domain.Order
*/
public interface OrderMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Order record);


    int insertSelective(Order record);

    Order selectByPrimaryKey(Long id);

    //单表 一个商家的所有完成的订单
    List<Order> selectByShopID(Order record);

    //一个商家的所有未完成的订单
    List<Order> selectByShopIDUN(Order record);


    //多表 订单的查询
    Order selectById(Long id);


    //更新 1.商家订单确认
    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

}
